/**
 *@auther: tang
 *@Date: 2020-11-11
 *Project: group-booking-shop-manage-system
 */


export default function getOneConsArr(routes) {
    const allArr = [];
    return tempCompute(routes, allArr)
}

function tempCompute(routes,allArr){
    routes.forEach(item=>{
        allArr.push(item)
        if (item.menuChilds && item.menuChilds.length>0){
            tempCompute(item.menuChilds,allArr)
        }
    })
    return allArr
}
